﻿using System;
using System.Drawing;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GomeeSoft.src.classes;
namespace GomeeSoft.src.form.DiaryPages
{
    static class UCPage
    {
        #region Paint
        public static void PaintHeaderLine(object sender, PaintEventArgs e, Size s)
        {
            Pen n = new Pen(Global.GetColor(Global.PageHeaderLineColor[0]));
            Point p1 = new Point(0, 50);
            Point p2 = new Point(s.Width, 50);
            e.Graphics.DrawLine(n, p1, p2);
            n = new Pen(Global.GetColor(Global.PageHeaderLineColor[1]));
            p1.Offset(0, 1);
            p2.Offset(0, 1);
            e.Graphics.DrawLine(n, p1, p2);
            n = new Pen(Global.GetColor(Global.PageHeaderLineColor[2]));
            p1.Offset(0, 1);
            p2.Offset(0, 1);
            e.Graphics.DrawLine(n, p1, p2);
            n = new Pen(Global.GetColor(Global.PageHeaderLineColor[0]));
            p1 = new Point(0, s.Height - 3);
            p2 = new Point(s.Width, s.Height - 3);
            e.Graphics.DrawLine(n, p1, p2);
            n = new Pen(Global.GetColor(Global.PageHeaderLineColor[0]));
            p1.Offset(0, 1);
            p2.Offset(0, 1);
            e.Graphics.DrawLine(n, p1, p2);
            n = new Pen(Global.GetColor(Global.PageHeaderLineColor[2]));
            p1.Offset(0, 1);
            p2.Offset(0, 1);
            e.Graphics.DrawLine(n, p1, p2);
        }
        #endregion
    }
}
